<?php
session_start();
include("../db_connect.php");

$command = "";

if(isset($_GET['command'])){
	$command = $_GET['command'];
	$modeltype = $_GET['modelid'];
}


if($command == "model" ){
$sql = mysql_query("SELECT * FROM tblmodel where brandId='" .$modeltype. "' ");
	$opt = '<option id="mdlbrand" name="none" value="">Select</option> ';
	//$opt = "";
	while($row = mysql_fetch_array($sql) ){
		$opt .= '<option id="mdlbrand" name="'.$row["id"].'" value="'.$row["modelname"].'" >'.$row["modelname"].'</option>';
	}
	echo $opt;
}


	


?>